import { Loading } from 'element-ui';
const state = {
    userInfo: {}
};
const getters = {
    getUserInfo(state) {
        return state.userInfo;
    }
};
const mutations = {
    ADD_USER_INFO(state, payload) {
        state.userInfo = payload;
    },
    CLEAR_USER_INFO(state) {
        state.userInfo = {};
    }
};
const actions = {
    reqGetUserInfo({ state, commit }) {
        commit('ADD_USER_INFO', {
            avatar: '',
            last_login: '2018-12-29 10:31:18',
            level: '101',
            nickname: 'RIVER',
            permission: [],
            username: 'RIVER'
        });
    }
};
export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
};
